{% extends "base.html" %}
{% block title %}{{ block.super }} Login{% endblock %}
{% block main_content %}
	<div id="center_column_login">
	<span class="title">Login{% if status %} <span class="login_error">{{status}}!</span>{% endif %}:</span><br />
	{% if next %}
	<div id="gen_error_message">
		Please login to continue to destination.

	</div>
	{% endif %}
	{% if error_message %}
		{% if in_error %}
			<div id="gen_error_message">Your Username and Password did not match. 
				<ul>
					<li><a href="http://fblaconnection.com/login/recovery">Forgot your password?</a></li>
					<li><a href="http://fblaconnection.com/register/">Register for a free account</a></li>
				</ul>
			</div>
		{% endif %}
		{% if na_error %}
			<div id="gen_error_message">Your account is valid but inactive, did you use the validation link sent to your email? 
				<ul>
					<li>Check your Email</li>
					<li><a href="http://fblaconnection.com/login/reactivate/">Resend the activation email</a></li>
				</ul>
			</div>		
		{% endif %}
		{% if log_out %}
			<div id="gen_error_message">Successfully logged out, you can sign back in below. 
			</div>
		{% endif %}
	{% endif %}
		<form action="http://fblaconnection.com/login/in/{% if next %}?next={{next}}{% endif %}" method="post" id="register" accept-charset="utf-8">
			<table width="300" border="0">
			  <tr>
			    <td align="right">Username: </td>
			    <td><input type="text" name="username" value="" class="register_text populate" title="Username" /></td>
			  </tr>
			  <tr>
			    <td align="right">Password: </td>
			    <td><input type="password" name="password" value="" class="register_text" /></td>
			  </tr>
		  	  <tr>
			    <td></td>
			    <td>
					<input type="submit" class="register_button" value="Login" />
				</td>
			  </tr>
			</table>
		</form>
	</div>
{% endblock %}